﻿<%@ Page Title="Register Page" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeBehind="RegisterPage.aspx.cs" Inherits="MAA.Presentation.PRL.Account.RegisterPage" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
    <link href="../Styles/Register.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <table width="100%">
        <tbody>
            <div class="register">
                <h2>
                    <asp:Label ID="langRegisterAcc" runat="server" Text="<%$Resources:language, langRegisterAcc%>"></asp:Label></h2>
                <br />
                <div class="info" style="display:inline-block;float:left;">
                    <label style="margin-left: 30px;">
                        <asp:Label ID="langName" runat="server" Text="<%$Resources:language, langName%>"></asp:Label></label><br /><br />
                    <label style="margin-left: 30px;">
                        <asp:Label ID="langEmail" runat="server" Text="Email"></asp:Label></label><br /><br />
                    <label style="margin-left: 30px;">
                        <asp:Label ID="langPass" runat="server" Text="<%$Resources:language, langPass%>"></asp:Label></label><br /><br />
                    <label style="margin-left: 30px;">
                        <asp:Label ID="langConfirmMail" runat="server" Text="<%$Resources:language, langConfirmMail%>"></asp:Label></label><br /><br />
                    <label style="margin-left: 30px;">
                        <asp:Label ID="langAddress" runat="server" Text="<%$Resources:language, langAddress%>"></asp:Label></label><br />
                </div>
                <div class="enter" style="display:inline-block;margin-left:20px;">
                    <asp:TextBox Width="236px" runat="server" ID="tbxName" MaxLength="100"></asp:TextBox>
                    *
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="<%$Resources:language, langErrNameEntity%>"
                        ControlToValidate="tbxName" ForeColor="Red" SetFocusOnError="True" ValidationGroup="Register"></asp:RequiredFieldValidator>
                    <br />
                    <asp:TextBox Width="236px" runat="server" ID="tbxEmail" MaxLength="100"></asp:TextBox>
                    *
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="<%$Resources:language, langErrEmailEntity%>"
                        ControlToValidate="tbxEmail" ForeColor="Red" SetFocusOnError="True" Display="Dynamic"
                        ValidationGroup="Register"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ErrorMessage="<%$Resources:language, langErrEmail%>"
                        ControlToValidate="tbxEmail" SetFocusOnError="True" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                        Display="Dynamic" ForeColor="Red" ValidationGroup="Register"></asp:RegularExpressionValidator>
                    <br />
                    <asp:TextBox Width="236px" runat="server" ID="tbxPassword" MaxLength="30"
                        TextMode="Password"></asp:TextBox>
                    *
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="<%$Resources:language, langEnterPass%>"
                        ControlToValidate="tbxPassword" ForeColor="Red" SetFocusOnError="True" Display="Dynamic"
                        ValidationGroup="Register"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ErrorMessage="<%$Resources:language, langPassErr%>"
                        ValidationExpression="[0-9a-zA-Z]{7,}" ForeColor="Red" ControlToValidate="tbxPassword"
                        SetFocusOnError="True" ValidationGroup="Register" />
                    <br />
                    <label>
                        <asp:Label ID="langPasslonger6" runat="server" Text="<%$Resources:language, langPasslonger6%>"></asp:Label></label>
                    <br />
                    <asp:TextBox  Width="236px" runat="server" ID="tbxConfirmPassword" MaxLength="30"
                        TextMode="Password"></asp:TextBox>
                    *
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ErrorMessage="<%$Resources:language, langErrConfirmMailEntity%>"
                        ControlToValidate="tbxConfirmPassword" ForeColor="Red" SetFocusOnError="True"
                        Display="Dynamic" ValidationGroup="Register"></asp:RequiredFieldValidator>
                    <asp:CompareValidator ID="CompareValidator1" runat="server" ErrorMessage="Mật khẩu xác nhận chưa đúng."
                        ControlToCompare="tbxPassword" ControlToValidate="tbxConfirmPassword" ForeColor="Red"
                        SetFocusOnError="True" Display="Dynamic" ValidationGroup="Register"></asp:CompareValidator>
                    <br />
                    <asp:TextBox Width="236px" Style= "resize: none;" runat="server" ID="tbxAddress"
                        MaxLength="255" TextMode="MultiLine" Font-Names="Segoe UI"></asp:TextBox>
                    <br />
                    <asp:DropDownList runat="server" ID="ddlProvince" Width="242px">
                    </asp:DropDownList>
                    <br />
                    <br />
                    <asp:Button Style="margin-left: 50px;" runat="server" ID="btnOK" Text="<%$Resources:language, langRegister%>"
                        OnClick="btnRegister_Click" ValidationGroup="Register" />
                    <asp:Button Style="margin-left: 10px;" runat="server" ID="btnCancel" Text="<%$Resources:language, langCancel%>"
                        OnClick="btnCancel_Click" CausesValidation="False" /><br />
                </div>
            </div>
        </tbody>
    </table>
</asp:Content>
